import request from "@/utils/request";

/**
 * 获取频率列表
 * @param {Object} params 查询参数
 * @returns {Promise} 返回频率列表数据
 */
export function getFrequencyListByConditionApi(params) {
  return request({
    url: "/config/dict/getFrequencyListByCondition",
    method: "get",
    params,
  });
}

/**
 * 添加频率
 * @param {Object} data 频率信息
 * @returns {Promise} 返回添加结果
 */
export function addFrequencyApi(data) {
  return request({
    url: "/config/dict/addFrequency",
    method: "post",
    data,
  });
}

/**
 * 更新频率
 * @param {Object} data 频率信息
 * @returns {Promise} 返回更新结果
 */
export function updateFrequencyApi(data) {
  return request({
    url: "/config/dict/updateFrequency",
    method: "post",
    data,
  });
}

/**
 * 删除频率
 * @param {Object} data 删除参数
 * @returns {Promise} 返回删除结果
 */
export function deleteFrequencyApi(data) {
  return request({
    url: "/config/dict/deleteFrequency",
    method: "post",
    data,
  });
} 